﻿#ifdef _MSC_VER
#include <windows.h>
#include <locale.h>
#endif   // _MSC_VER

#include "hlog.h"

int lua_main(int argc, char* argv[]);

int main(int argc, char** argv)
{
#ifdef _MSC_VER
    setlocale(LC_ALL, ".utf8");
    SetConsoleCP(CP_UTF8);
    SetConsoleOutputCP(CP_UTF8);

    SetProcessPreferredUILanguages(MUI_LANGUAGE_NAME, L"en-US", NULL);
#endif   // _MSC_VER

    hlog_disable();

    return lua_main(argc, argv);
}
